{extend name="layout/read" /}
{block name="table"}

<table class="table">
	<thead>
		<tr>
			<th>字段</th>
			<th>值</th>  
		</tr>
	</thead>
	<tbody>

	<tr>
		<td>{$tables["fields"]["id"]["name"]}</td>
		<td>{$info["id"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["name"]["name"]}</td>
		<td>{$info["name"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["keyword"]["name"]}</td>
		<td>{$info["keyword"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["value"]["name"]}</td>
		<td>{$info["value"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["create_time"]["name"]}</td>
		<td>{$info["create_time"]}</td>
	</tr>

	<tr>
		<td>{$tables["fields"]["update_time"]["name"]}</td>
		<td>{$info["update_time"]}</td>
	</tr>

	<tr>
		<td colspan="2">
			{if checkurl($now_route["controller"]."/edit")}
			<a href="{:url("edit",array("id"=>$info["id"]))}" class="btn btn-primary" title="修改">
				<i class="fa fa-fw fa-lg fa-check-circle"></i>修改
			</a>
			{/if}
			{if checkurl($now_route["controller"]."/delete")}
			<a href="javascript:;" data-href="{:url("delete",array("id"=>$info["id"]))}" class="btn btn-secondary delete" title="删除">
				<i class="fa fa-fw fa-lg fa-times-circle"></i>删除
			</a>
			{/if}
		</td>
	</tr>
	</tbody>
</table>

{/block}
